package model;import java.util.ArrayList;public class Programs {    private ArrayList<Program> listPrograms;    public Programs(){        this.listPrograms = new ArrayList<Program>();    }        public void addProgram(Program prog){        getListProgram().add(prog);    }       public void removeProgramme(String nomProg){    	for( Program prog: this.listPrograms ){    		if(prog.getProgramName().equals(nomProg)){    			this.listPrograms.remove(indexProg(prog));    		}    	}    }        public int indexProg(Program prog){return this.listPrograms.indexOf(prog);}        public ArrayList<Program> getListProgram() {return this.listPrograms;}        public int getSize(){return this.listPrograms.size();}        public Program getProgramme(int i){return this.listPrograms.get(i);}}